#pragma once
#include "afxwin.h"


// CDiscountDlg dialog

class CDiscountDlg : public CDialog
{
	DECLARE_DYNAMIC(CDiscountDlg)

public:
	CDiscountDlg(CWnd* pParent = NULL);   // standard constructor
	virtual ~CDiscountDlg();

	afx_msg void OnCbnSelchangeType();
	virtual BOOL OnInitDialog();
	void initialFoodType(const vector<CString>& foodType);
	void initialDiscountName(CString& DiscountName){m_discountName = DiscountName;};
	const discountPlan& getDiscountPlan();
// Dialog Data
	enum { IDD = IDD_DISCOUNTDLG };

protected:
	virtual void DoDataExchange(CDataExchange* pDX);    // DDX/DDV support

	DECLARE_MESSAGE_MAP()
public:
	int m_nDiscount;
public:
	CString m_reason;
public:
	CComboBox m_typeCombo;
private:
	vector<CString> m_vType;
	discountPlan m_discount;
	CString m_discountName;
	int m_preSel;
	afx_msg void OnBnClickedOk();
};
